package com.linchuansi.lock.reentrantlock;

import java.util.concurrent.locks.ReentrantLock;

/**
 * ReentrantLock测试*
 *
 * @author wb
 * @date 2025-11-11 21:50*@since 1.0.0
 */
public class ReentrantLockDemo {
    public static void main(String[] args) {
        ReentrantLock reentrantLock = new ReentrantLock();
        reentrantLock.lock();
        try {
            System.out.println("开始执行");

        }
        finally {
            reentrantLock.unlock();
        }
    }
}
